package com.yegs.admin.business.mapper;

import com.yegs.admin.business.entity.BaseRole;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author yegs
 * @since 2020-08-20
 */
@Repository("baseRoleMapper")
public interface BaseRoleMapper extends BaseMapper<BaseRole> {

    public List<BaseRole> findBaseRolesByUserId(Integer user_id);

    public List<BaseRole> findRoleHaveMenu();

    public List<BaseRole> findRoleHaveMenuList();

    public List<String> findRoleHaveMenuListByRoleId(Integer roleId);

    public List<String> findRoleNameByUserName(String user_username);

}
